#pragma once


// OphiesDownLoadWnd

class COphiesDownLoadWnd : public CWnd
{
	DECLARE_DYNAMIC(COphiesDownLoadWnd)

public:
	COphiesDownLoadWnd();
	virtual ~COphiesDownLoadWnd();

protected:
	DECLARE_MESSAGE_MAP()
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);


public:
	void	SetDownLoadFileList(CStringArray& arrFilePath)		{ m_arrDownLoadFileList.Copy( arrFilePath ); }

	void	StartDownLoad();
	void	StopDownLoad();

	void	DownLoad();

protected:
	static UINT WorkThread(LPVOID pParam);



	//Control member
protected:
	CProgressCtrl		m_ctrProgress;

	CWinThread*			m_pThread;

protected:
	CStringArray		m_arrDownLoadFileList;

	int					m_nDownLoadCompleteFileCnt;
	int					m_nDownLoadFailFileCnt;
};


typedef CArray<COphiesDownLoadWnd*, COphiesDownLoadWnd*> CDownLoadWndArray;
